<?php

/*
 * Object/Synthese.php
 */

namespace RHX\Model\Object;

use Zend\Db\Adapter\Adapter;

class Synthese extends InstructionPaie {

    public $cp_du_n1;
    public $cp_acquis_n1;
    public $prov_cp;
    public $salaire_net;
    public $vir1;
    public $vir2;
    public $chq;

    /**
     * Constructeur
     * 
     * @param \Zend\Db\Adapter\Adapter $adapter
     * @param array $data
     */
    public function __construct(Adapter $adapter, $data = array()) {
	parent::__construct($adapter, $data);
    }

    /**
     * Remplissage
     * 
     * @param array $data
     */
    public function exchangeArray($data) {
	parent::exchangeArray($data);
	$this->cp_du_n1		 = isset($data['cp_du_n1']) ? $data['cp_du_n1'] : 0.0;
	$this->cp_acquis_n1	 = isset($data['cp_acquis_n1']) ? $data['cp_acquis_n1'] : 0.0;
	$this->prov_cp		 = isset($data['prov_cp']) ? $data['prov_cp'] : 0.0;
	$this->salaire_net	 = isset($data['salaire_net']) ? $data['salaire_net'] : 0.0;
	$this->vir1		 = isset($data['vir1']) ? $data['vir1'] : 0.0;
	$this->vir2		 = isset($data['vir2']) ? $data['vir2'] : 0.0;
	$this->chq		 = isset($data['chq']) ? $data['chq'] : 0.0;
    }

}
